// src/APP.vue

<template>
<div id="input-v-model-demo" class="demo">
  <my-component v-model.capitalize="myText"></my-component>
  <div>{{ myText }}</div>
</div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import MyComponent from './components/my-component.vue'

export default defineComponent({
  name:"APP",
  components: {
    MyComponent
  },
  setup(props, context) {
    const myText = ref('')

    return {
      myText
    }
  }
})
</script>